import request from '@/utils/request'

// 查询保养记录列表
export function listMaintenanceRecords(query) {
  return request({
    url: '/wms/maintenanceRecords/list',
    method: 'get',
    params: query
  })
}

// 查询保养记录详细
export function getMaintenanceRecords(id) {
  return request({
    url: '/wms/maintenanceRecords/' + id,
    method: 'get'
  })
}

// 新增保养记录
export function addMaintenanceRecords(data) {
  return request({
    url: '/wms/maintenanceRecords',
    method: 'post',
    data: data
  })
}

// 修改保养记录
export function updateMaintenanceRecords(data) {
  return request({
    url: '/wms/maintenanceRecords',
    method: 'put',
    data: data
  })
}

// 删除保养记录
export function delMaintenanceRecords(id) {
  return request({
    url: '/wms/maintenanceRecords/' + id,
    method: 'delete'
  })
}
